//
//  LYTitleView.h
//  SelectCity
//
//  Created by liuyan on 2019/3/27.
//  Copyright © 2019年 liuyan. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^LYTitlesViewBlock)(NSInteger index);

NS_ASSUME_NONNULL_BEGIN

@interface LYTitleView : UIView

- (instancetype)initWithFrame:(CGRect)frame titlesArray:(NSArray *)titlesArray norCorlor:(UIColor *)norCorlor selectColor:(UIColor *)selectColor;

@property (nonatomic, copy)  LYTitlesViewBlock block;

- (void)scrollToIndex:(NSInteger)index;

@end

NS_ASSUME_NONNULL_END
